

class LoginPage():
    def __init__(self,username,password,verify_code):
        self.username=username
        self.password=password
        self.verify_code=verify_code
    def __str__(self):
        return f'姓名为{self.username}密码为{self.password}验证码为{self.verify_code}'
    def login(self):
        print(f'用户名为{self.username}')
        print(f'密码为{self.username}')
        print(f'验证码为{self.verify_code}')
        print('登录成功')
if __name__=='__main__':

    sjl=LoginPage(username='123123',password='123123',verify_code='123123')

    sjl.login()

    ccy=LoginPage(username='123123',password='123123',verify_code='123123')

    print(ccy)

